package yhao.demo.web.firstWeb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.Import;
import yhao.infra.common.logger.BootstrapLogDoneFilter;
import yhao.infra.web.config.RedisSessionConfig;
import yhao.infra.web.WebBaseConfig;

@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableFeignClients({"yhao.demo.service.login.apilist","yhao.demo.service.person.apilist"})
@EnableHystrix
@Import({WebBaseConfig.class,RedisSessionConfig.class,})
public class FirstWebWebApplication {
    public static void main(String[] args) {
        SpringApplication.run(FirstWebWebApplication.class, args);
        BootstrapLogDoneFilter.bootstrapDone();
    }
}
